package org.lc.stk.web.response;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@NoArgsConstructor
@AllArgsConstructor
@Schema(description = "错误响应")
public class ErrorResponse {
    
    @Schema(description = "错误代码", example = "401")
    private int code;
    
    @Schema(description = "错误消息", example = "用户名或密码错误")
    private String message;
    
    @Schema(description = "错误详情", example = "Authentication failed for user: admin")
    private String detail;

    public ErrorResponse(int code, String message) {
        this.code = code;
        this.message = message;
    }
}